<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>招聘网站 - 修改用户信息</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="css/plugins/dataTables/dataTables.bootstrap.css"
          rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">

</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改用户信息</h5>
                </div>
                <div class="ibox-content">

                    <form method="post" class="form-horizontal" id="commentForm" action="/doUpdateUser">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">工号</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="id" th:value="${user.id}" readonly="readonly">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">姓名</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="username" th:value="${user.username}" minlength="2" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">联系方式</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="phoneNum" th:value="${user.phoneNum}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">邮箱</label>
                            <div class="col-sm-7" >
                                <input type="text" class="form-control" placeholder="" name="email" th:value="${user.email}" email="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">密码</label>
                            <div class="col-sm-7">
                                <input type="password" class="form-control" name="password" th:value="${user.password}" minlength="4" required>
                            </div>
                        </div>

<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">性别</label>-->
<!--                            <div class="col-sm-7">-->
<!--                                <div class="radio i-checks">-->
<!--                                    <label>-->
<!--                                        <input type="radio" value="男" name="gender" checked="checked">-->

<!--                                        <i></i>男</label>-->
<!--                                    <i style="margin-left: 25px"></i>-->
<!--                                    <label>-->
<!--                                        <input type="radio" value="女" name="gender">-->

<!--                                        > <i></i>女</label>-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </div>-->

<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">出生年月</label>-->
<!--                            <div class="col-sm-7">-->
<!--                                <input type="date" class="form-control" name="date" value="" >-->
<!--                            </div>-->
<!--                        </div>-->

<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">籍贯</label>-->
<!--                            <div class="col-sm-7">-->
<!--                                <input type="text" class="form-control" name="address" value="">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">学历</label>-->
<!--                            <div class="col-sm-7">-->
<!--                                <input type="text" class="form-control" name="education" value="">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">部门</label>-->
<!--                            <div class="col-sm-7">-->
<!--                                <select class="form-control m-b" name="departmentNumber" size="1" required>-->
<!--                                    <option value="">&#45;&#45;请选择部门&#45;&#45;</option>-->
<!--                                </select>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">职称</label>-->
<!--                            <div class="col-sm-7">-->
<!--                                <select class="form-control m-b" name="positionNumber" size="1" required>-->
<!--                                    <option value="">&#45;&#45;请选择职称&#45;&#45;</option>-->

<!--                                </select>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">状态</label>-->
<!--                            <div class="col-sm-7">-->
<!--                                <select class="form-control m-b" name="status" size="1">-->
<!--                                    <option value="在职">在职</option>-->
<!--                                    <option value="退休">退休</option>-->
<!--                                    <option value="离职">离职</option>-->
<!--                                </select>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">备注</label>-->
<!--                            <div class="col-sm-7">-->
<!--                                <input type="text" class="form-control" name="notes" value="<%=employee.getNotes() %>">-->
<!--                            </div>-->
<!--                        </div>-->
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-8">
                                <button class="btn btn-primary" type="submit">修&nbsp;&nbsp;改</button>&nbsp;&nbsp;&nbsp;&nbsp;
                                <button class="btn btn-white" type="reset">取&nbsp;&nbsp;消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/plugins/jeditable/jquery.jeditable.js"></script>

<!-- Data Tables -->
<script src="js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="js/plugins/dataTables/dataTables.bootstrap.js"></script>

<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>

<!-- 表单验证 -->
<script src="js/plugins/validate/jquery.validate.min.js"></script>
<script src="js/plugins/validate/messages_zh.min.js"></script>

<!-- layer javascript -->
<script src="js/plugins/layer/layer.min.js"></script>
<script>
    $().ready(function() {
        $("#commentForm").validate();
    });
    $.validator.setDefaults({
        submitHandler: function() {
            form.submit();
        }
    });
</script>

</body>
</html>
